/**
 * Copyright (c) 2015 Baidu. All Rights Reserved.
 *
 * @file 文件路径工具单测
 * @author yuanguozheng
 */
var urls = require('../utils/urls');
var path = require('path');

exports.testConfig = function (test) {
    var expect = path.join(__dirname, '../config/mapping.json');
    test.deepEqual(expect, urls.config('mapping'));
    test.done();
};

exports.testGetPath = function (test) {
    var expect = path.join(__dirname, '../templates/java.tmpl');
    test.deepEqual(expect, urls.getPath('templates/java.tmpl'));
    test.done();
};